const Ajax = window.ajaxFlowApi;

export const structureList = (param) => Ajax.request(`/v1/business/organization/structure/list`, 'post', param, { showLoading: true })
export const structureCreate = (param) => Ajax.request(`/v1/business/organization/structure`, 'post', param, { showLoading: true })
export const structureUpdate = (param) => Ajax.request(`/v1/business/organization/structure`, 'put', param, { showLoading: true })
export const structureDelete = (primaryKey) => Ajax.request(`/v1/business/organization/structure/${primaryKey}`, 'delete', '', { showLoading: true })
export const structureDetail = (primaryKey) => Ajax.request(`/v1/business/organization/structure/${primaryKey}`, 'get', '', { showLoading: true })
export const structureTree = (param) => Ajax.request(`/v1/business/organization/node/trees`, 'post', param, { showLoading: true })
// export const structureBatchCreate = (param) => Ajax.request(`/v1/business/org/org/employee/batch/create`, 'post', param, { showLoading: true })
